package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.MedcineType;

/**
 * 药品类dao
 * @author Administrator
 *
 */
public interface IMedcineType extends CrudRepository<MedcineType,Long> {
	/**
	 * 查询所有药品类
	 * @return
	 */
	@Query("select new com.trkj.pojos.MedcineType(c.medcinetypeId,c.medcinetypeEffect,c.medcineTypeName,c.medcinetypeNote) from MedcineType c order by c.medcinetypeId desc")
	public List<MedcineType> findAllMedcineType();
}
